<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'register.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="image/style.css">

  </head>
  
  <body topmargin="0" leftmargin="0" bgcolor="#f3f3f3">
		<jsp:include page="../jsp/MainHeader.jsp"></jsp:include>
		<form id="Form1" action="register.action" method="post">
			<table width="1000" cellpadding="0" cellspacing="0" border="0">
				<tr height="100">
					<td colspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td align="right" width="300" valign="top"><img src="image/register.gif"></td>
					<td width="20">&nbsp;</td>
					<td valign="top">
						<table width="700" border="0" cellpadding="0" cellspacing="0" style="background-color:#FFFFFF;BORDER-RIGHT:#cccccc 1px solid; BORDER-TOP:#cccccc 1px solid; BORDER-LEFT:#cccccc 1px solid; BORDER-BOTTOM:#cccccc 1px solid; BORDER-COLLAPSE:collapse">
							<tr height="30">
								<td colspan="3" align="center" background="image/main/l-bg1.jpg"><font color="#ffff66"><b>新博客注册</b></font></td>
							</tr>
							<tr height="30">
								<td align="right" width="160">帐号&nbsp;</td>
								<td width="140"><input type="text" name="username"/></td>
								<td><s:fielderror><s:param>username</s:param></s:fielderror></td>
							</tr>
							<tr height="30">
								<td align="right">密码&nbsp;</td>
								<td><input type="password" name="password"/></td>
								<td><s:fielderror><s:param>password</s:param></s:fielderror></td>
							</tr>
							<tr height="30">
								<td align="right">确认密码&nbsp;</td>
								<td><input type="password" name="repassword"/></td>
								<td><s:fielderror><s:param>repassword</s:param></s:fielderror></td>
							</tr>
							<tr height="30">
								<td align="right">昵称&nbsp;</td>
								<td><input type="text" name="nickname"/></td>
								<td><s:fielderror><s:param>nickname</s:param></s:fielderror></td>
							</tr>
							<tr height="30">
								<td align="right">密码保护问题&nbsp;</td>
								<td>
									<select name="question">
										<option value="你的生日">你的生日</option>
										<option value="你的家乡">你的家乡</option>
										<option value="你最喜欢的食物">你最喜欢的食物</option>
									</select>
								</td>
					
							</tr>
							<tr height="30">
								<td align="right">密码保护的答案&nbsp;</td>
								<td><input type="text" name="answer"/></td>
								<td><s:fielderror><s:param>answer</s:param></s:fielderror></td>
							</tr>
							<tr height="30">
								<td colspan="3" align="center"><input type="submit" value="提交"/>
								<input type="reset" value="重置"/>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
